<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>
  for (var red = 0; red <= 25; ++red) {
    for (var white = 0;  white <= 31; ++white) {
      for (var black = 0; black <= 28; ++black) {
        if (((red + white) == 25) && ((white + black) == 31) && ((red + black) == 28)) {
          document.write('红球：' + red + '，白球：' + white + '，黑球：' + black);
        }
      }
    }
  }
</script>
</body>
</html>
